package cn.imu.mapper;

import cn.imu.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserMapper {
    /**
     *  用于用户登陆时的验证
     * @return 如果用户名和密码同时匹配则返回一个User对象
     */
    User selectUserByUsername(@Param("user") User user);
    int insertUser(@Param("user") User user);
}
